sub initialize_circular {

	# Pretty arguments.
	($args) = @_;

	# Create the network.
	$network = insj_m_network->new(name => 'Circular Infection Network');
	for($counter = 1; $counter <= $args->{'number_of_nodes'}; $counter++){
        	$node = $network->create_node( name=> $counter);}
	
	# Connect the network.

	@nodes = $network -> get_node_keys();
	$network -> rewind;

	print $network->get_name."test\n";

	for($counter = 1; $counter <= $args->{'number_of_nodes'}; $counter++){
		# connect left
		for($left = 1; $left <= $args->{'depth'}; $left++){
			$counter2 = ($counter+$left);
			if ($counter2 > $args->{'number_of_nodes'}) { $counter2-=$args->{'number_of_nodes'}};
			$network->create_edge( $counter, $counter2, 'uni');	
			}
		# connect right
		for($right = 1; $right <= $args->{'depth'}; $right++){
			$counter2 = ($counter-$right);
			if ($counter2 < 1) { $counter2+=$args->{'number_of_nodes'}};
			$network->create_edge( $counter, $counter2, 'uni');	
			}
		}
	return $network;
	}

1;
